<div class="cl pd-5 bg-1 bk-gray"> 
	<span class="r">
		共：<strong>{$count}</strong> 条
	</span>
</div>
<table class="table table-border table-bordered table-hover table-bg">
	<thead>
		<tr class="text-c">
			<th width="25" rowspan="2"><input type="checkbox" value="" name=""></th>
			<th width="50" rowspan="2">房间号</th>
			<th rowspan="2">抄表月份</th>
			<th colspan="4">水表</th>
			<th colspan="4">电表</th>
			<th colspan="4">气表</th>
			<th rowspan="2">操作员</th>
			<th rowspan="2">导入时间</th>
			<!--<th rowspan="2">操作</th>-->
		</tr>
		<tr class="text-c">
			<th>上月</th>
			<th>本月</th>
			<th>新合同数</th>
			<th>单价</th>
			<th>上月</th>
			<th>本月</th>
			<th>新合同数</th>
			<th>单价</th>
			<th>上月</th>
			<th>本月</th>
			<th>新合同数</th>
			<th>单价</th>
		</tr>
	</thead>
	<tbody>
		<?php if(is_array($list) && count($list)){ ?>
		<?php foreach($list as $ls){ ?>
		<tr class="text-c">
			<td><input type="checkbox" value="{$ls['id']}" name=""></td>
			<td>{$ls['roomnumber']}</td>
			<td>{$ls['month']}</td>
			<td>{$ls['before_water']}</td>
			<td>{$ls['water']}</td>
			<td>{$ls['contract_water']}</td>
			<td>{$ls['water_price']}</td>
			<td>{$ls['before_electric']}</td>
			<td>{$ls['electric']}</td>
			<td>{$ls['contract_electric']}</td>
			<td>{$ls['electric_price']}</td>
			<td>{$ls['before_gas']}</td>
			<td>{$ls['gas']}</td>
			<td>{$ls['contract_gas']}</td>
			<td>{$ls['gas_price']}</td>
			<td>{$ls['admin_nick']}</td>
			<td>{$ls['createtime']|date="Y-m-d", ###}</td>
			<!--
			<td>
				<a href="javascript:void(0);" title="编辑" onclick="admin_role_edit('编辑信息','edit.html?id={$ls['id']}', 1,'720', '500');" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> 
			</td>-->
		</tr>
		<?php } }else{ ?>
		<tr class="text-c">
			<td colspan="19" >暂无 {$month} 数据...</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<!--page-->
<include file="Common/page" />
<script>
	$(document).ready(function(){
		/*全选*/
		$("table thead th input:checkbox").on("click" , function(){
			$(this).closest("table").find("tr > td:first-child input:checkbox")
					.prop("checked",$("table thead th input:checkbox")
					.prop("checked"));
	    });
	});
</script>